﻿using System.Windows.Forms;

namespace GUI
{
    public partial class CtrNguoiDung : UserControl
    {
        public CtrNguoiDung()
        {
            InitializeComponent();
        }

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            TinRaoVatForm form = new TinRaoVatForm();
            form.PhanQuyen = "Người dùng";
            
            form.StartPosition = FormStartPosition.CenterScreen;
            form.Show();
        }

        private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            DangKyForm register = new DangKyForm();
            register.chkUpdate = true;
            register.ms = @LogedIn.login.MaNguoiDung;
            register.Show();
        }
    }
}
